package com.longlonggo.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.longlonggo.action.BaseAction;

/**
 * 系统用户前端页面控制层
 * 
 * @author 石马人山 me@longlonggo.com
 * @Created 2017年8月9日 上午11:09:24
 *          </p>
 * @version 100-000-000<br/>
 * @description <br/>
 */
@Controller
@RequestMapping("/user")
public class UserAction extends BaseAction {

	/**
	 * 主页
	 * 
	 * @param request
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/index")
	public String index(HttpServletRequest request, Model model) {
		model.addAttribute("myName", "yyyy");
		return "/user/index";
	}

	/**
	 * 主页
	 * 
	 * @param request
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/welcome")
	public String welcome(HttpServletRequest request, Model model) {
		logger.info("-------------welcome");
		model.addAttribute("myName", "yyyy");
		return "/user/welcome";
	}
}
